package com.hustcs.mindmap.drawmap;

import android.graphics.Canvas;
import android.graphics.Paint;

import com.hustcs.mindmap.drawmap.shapes.Shape;

public class Node {
	private int x;
	private int y;	
	private Shape shape;
	private Canvas canvas;
	private Paint paint;
	private int level;
	private String summary;
	
	public Node(int x, int y, Canvas canvas, Paint paint, Shape shape) {
		this.x = x;
		this.y = y;
		this.canvas = canvas;
		this.paint = paint;
		this.shape = shape;
	}
	public void setInfo(int x, int y, int level) {
		this.x = x;
		this.y = y;
		this.level = level;
	} 
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public void setPaint(Paint paint) {
		this.paint = paint;
	}
	public void setShape(Shape shape) {
		this.shape = shape;
	}
	
	public void draw() {
		shape.draw();
	}
	public void undoAdd() {
		
	}
	
	public int getLevel() {
		return level;
	}
}
